import request from '@/utils/request'


// 查询全球商品列表
export function listProducts(query) {
  return request({
    url: '/shopee/price/product/list',
    method: 'get',
    params: query
  })
}

// 修改价格
export function changePublishedPrice(products) {
  return request({
    url: '/shopee/price/change',
    method: 'post',
    data: products,
  })
}


// 单行更新价格
export function getLinePrice(price) {
  return request({
    url: '/shopee/price/compute',
    method: 'post',
    data: price
  })
}

// 单行更新价格
export function getItemWithPrice(itemId) {
  return request({
    url: '/store/item/get/price/'+itemId,
    method: 'get',
  })
}

// 单行更新价格
export function getComputedPrice(model) {
  return request({
    url: '/shopee/price/single/compute',
    method: 'post',
    data: model
  })
}

// 修改价格
export function changeSinglePrice(item) {
  return request({
    url: '/shopee/price/change/single',
    method: 'post',
    data: item,
  })
}


